package com.hare.harelearn.DataStructure.structure.双向链表存储结构;

public class Node {

    private String name;


    private Node next;


    private Node pre;

    public Node(Node next, Node pre) {
        this.next = next;
        this.pre = pre;
    }

    public Node(String name) {
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public Node getPre() {
        return pre;
    }

    public void setPre(Node pre) {
        this.pre = pre;
    }
}
